import Layout from '@/views/layout/Layout'

export default {
  path: '/config',
  name: '后台设置',
  component: Layout,
  alwaysShow: true,
  children: [
    {
      path: 'admin',
      component: () => import('@/views/config/admin'),
      name: 'admin',
      meta: { title: '管理员列表' }
    },
    {
      path: 'activityMessage',
      component: () => import('@/views/activityMessage/activityMessage'),
      name: 'activityMessage',
      meta: { title: '活动消息' }
    },
    {
      path: 'onlineQuestion',
      component: () => import('@/views/config/onlineQuestion/onlineQuestion'),
      name: 'onlineQuestion',
      meta: { title: '在线问题管理' }
    },
    {
      path: 'menu',
      component: () => import(  '@/views/config/menu'),
      name: 'menu',
      meta: { title: '菜单列表', roles: ['系统设置', '菜单列表'] }
    },
    {
      path: 'authentication',
      component: () => import('@/views/config/authentication'),
      name: 'authentication',
      meta: { title: '权限管理' }
    },
    {
      path: 'role',
      component: () => import('@/views/config/role'),
      name: 'role',
      meta: { title: '管理员角色管理' }
    },
    {
      path: 'roleList',
      component: () => import('@/views/config/role/roleList'),
      name: 'roleList',
      meta: { title: '角色列表' }
    },
    {
      path: 'listConfig',
      component: () => import('@/views/config/listConfig'),
      name: 'listConfig',
      meta: { title: '参数管理' }
    },
    {
      path: 'logs',
      component: () => import('@/views/config/logs'),
      name: 'logs',
      meta: { title: '操作日志' }
    },
    {
      path: 'listVersion',
      component: () => import('@/views/config/listVersion'),
      name: 'listVersion',
      meta: { title: 'APP版本管理' }
    },
    {
      path: 'appVersionConfig',
      component: () =>
        import('@/views/config/appVersionConfig/appVersionConfig'),
      name: 'appVersionConfig',
      meta: { title: 'APP版本配置' }
    },
    {
      path: 'userWhiteList',
      component: () => import('@/views/config/userWhiteList'),
      name: 'userWhiteList',
      meta: { title: '用户白名单' }
    },
    {
      path: 'regionBlackList',
      component: () => import('@/views/config/regionBlackList'),
      name: 'regionBlackList',
      meta: { title: '地域黑名单' }
    },
    {
      path: 'globalBlackList',
      component: () => import('@/views/config/globalBlackList'),
      name: 'globalBlackList',
      meta: { title: '全局黑名单' }
    },
    {
      path: 'blackListRules',
      component: () => import('@/views/config/blackListRules'),
      name: 'blackListRules',
      meta: { title: '黑名单规则' }
    },
    {
      path: 'blackListModule',
      component: () => import('@/views/config/blackListModule'),
      name: 'blackListModule',
      meta: { title: '黑名单模块' }
    },
    {
      path: 'blackListUser',
      component: () => import('@/views/config/blackListUser'),
      name: 'blackListUser',
      meta: { title: '黑名单用户' }
    },
    {
      path: 'setConfig',
      component: () => import('@/views/config/setConfig'),
      name: 'setConfig',
      meta: { title: '基础信息设置' }
    },
    {
      path: 'kongkim',
      component: () => import('@/views/config/kongkim'),
      name: 'kongkim',
      meta: { title: '金刚区配置' }
    },
    {
      path: 'thirdPartDetect',
      component: () => import('@/views/config/thirdPartDetect'),
      name: 'thirdPartDetect',
      meta: { title: '第三方检测' }
    },
    {
      path: 'thirdPartDetectLog',
      component: () => import('@/views/config/thirdPartDetectLog'),
      name: 'thirdPartDetectLog',
      meta: { title: '第三方检测日志', noCache: true },
      hidden: true
    },
    {
      path: 'permissionList',
      component: () => import('@/views/config/permissionList/permissionList'),
      name: 'permissionList',
      meta: { title: '权限列表' }
    },
    {
      path: 'routingList',
      component: () => import('@/views/config/routingList/routingList'),
      name: 'routingList',
      meta: { title: '路由列表' }
    },
    {
      path: 'editModal',
      component: () => import('@/views/config/routingList/editModal'),
      name: 'editModal',
      meta: { title: '路由-添加权限' }
    }
  ]
}
